<template>
  <div class="store-card" @click="$router.push({path:'/store/' + model.id})">
    <el-avatar :src="model.avatar"></el-avatar>
    <div class="store-info">
      <span class="title">{{model.title}}</span>
      <span class="product-count">{{ $t('h.B006') }}：{{model.count}}</span>
    </div>
    <div class="right">
      {{ $t('h.B007') }}
      <van-icon  name="arrow"/>
    </div>
  </div>
</template>
<script>

export default {
  name: 'StoreCard',
  props:{
    model: {
      type:Object,
      default:() => {}
    }
  }
};
</script>
<style scoped lang="scss">
.store-card{
  display: flex;
  align-items: center;
  gap: 10px;
  .store-info{
    flex: 1;
    display: flex;
    flex-direction: column;
    .title{
      font-size: 16px;
    };
    .product-count{
      font-size: 14px;
      color: #999999;
    }
  }
  .right{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    background: #002fff;
    border-radius: 15px;
    font-size: 14px;
    padding: 5px 10px;
    color: #ffffff;
  }
}
</style>
